<div class="todo-add">
  <form nz-form [nzLayout]="'inline'" [formGroup]="validateForm" (ngSubmit)="submitForm(validateForm.value)">
    <nz-form-item>
      <nz-form-control>
        <nz-input-group nzPrefixIcon="anticon anticon-aliwangwang-o">
          <input formControlName="title" nz-input placeholder="请输入代办事项标题">
        </nz-input-group>
        <nz-form-explain *ngIf="validateForm.get('title').dirty && validateForm.get('title').errors">请输入代办事项标题!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-control>
        <nz-input-group nzPrefixIcon="anticon anticon-aliwangwang-o">
          <input formControlName="message" nz-input placeholder="请输入代办事项的内容">
        </nz-input-group>
        <nz-form-explain *ngIf="validateForm.get('message').dirty && validateForm.get('message').errors">请输入代办事项的内容!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-control>
        <button nz-button nzType="primary" [disabled]="!validateForm.valid" style="margin-right:16px">登陆</button>
        <button nz-button (click)="resetForm($event)">清空</button>
      </nz-form-control>
    </nz-form-item>
  </form>
</div>